Class MUConOutMessage

All Implemented Interfaces:
LTV

public class MUConOutMessage extends MultiUserMessage
This is a name update message from PT.
  • Field Details

    • linkId

      public int linkId
    • special

      public int special
    • string

      public String string
  • Constructor Details

    • MUConOutMessage

      public MUConOutMessage(int linkId, int special, String string)
      This function creates a new console input message for the MU protocol.
      Parameters:
      linkId - The link the message is on
      special - Any special processing codes
      string - The output message
    • MUConOutMessage

      public MUConOutMessage()
  • Method Details

    • setLinkId

      public void setLinkId(int linkId)
      Sets the linkId
      Parameters:
      linkId - The linkId associated with the output
    • getLinkId

      public int getLinkId()
      Gets the linkId from the message
      Returns:
      The linkId contained in the message
    • setSpecial

      public void setSpecial(int special)
      Sets the special attributes
      Parameters:
      special - The special attributes for this string
    • getSpecial

      public int getSpecial()
      Gets the special attributes
      Returns:
      The special attributes for this string
    • setString

      public void setString(String string)
      Sets the output string from the console
      Parameters:
      string - The output string from the console
    • getString

      public String getString()
      Gets the output string from the message
      Returns:
      The string for the console output
    • getMessage

      public static MUConOutMessage getMessage(EncodedBuffer buffer)
      A deserialization function that creates a new message from a PTBuffer object.
      Parameters:
      buffer - The PTBuffer to read from
      Returns:
      A new instance of a MUConOutMessage class read from the buffer
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buffer)
      Serializes the message into a PTBuffer.
      Specified by:
      encodeTypeAndPayload in interface LTV
      Overrides:
      encodeTypeAndPayload in class LTVImpl
      Parameters:
      buffer - The PTBuffer to write the message into
    • toString

      public String toString()
      Converts this message into a string for debugging purposes
      Overrides:
      toString in class MultiUserMessage
      Returns:
      A string representation of this message